Is this in any way usefull if (this != null)? [closed]

Posted by infate on Stack Overflow See other posts from Stack Overflow or by infate
Published on 2010-06-17T12:07:42Z Indexed on 2010/06/17 12:43 UTC
Read the original article Hit count: 96

Filed under:
|
|
|

I came across some tests that included code like this:

if (this != null) {
    do something
}

Is this if clause of any use? Is there a purpose I don't get that makes this useful?

© Stack Overflow or respective owner

Related posts about java

Related posts about beginner